package com.xhsj.user.pms.patent.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhsj.user.pms.patent.domain.TbPamJudgesReviewRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 评审会评审记录 Mapper 接口
 * </p>
 *
 * @author suxiaolin
 * @since 2020-05-08
 */
@Mapper
public interface TbPamJudgesReviewRecordMapper extends BaseMapper<TbPamJudgesReviewRecord> {

    //获取评审会反馈意见列表
    List<Map<String, Object>> getJudgesList(@Param("disclosureId") String disclosureId);
    //获取评审会反馈意见列表通过用户
    List<Map<String, Object>> getJudgesListByUserId(@Param("disclosureId") String disclosureId,
                                                    @Param("userId") String userId, @Param("fileType") Integer fileType);

    // 根据交底书id删除反馈意见
    void deleteByDisclosureId(@Param("disclosureId") String disclosureId,@Param("type") Integer type);
}
